using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using OVS.BusinessObjects;
using OVS.DAL;

namespace OVS.BLL
{
	public partial class AlertBLL
	{


        public Alert GetAlertOfCameraAndDetectedObject(int came_id, int imha_id, int maxLastAlertInMinute)
        {

            try
            {
                return AlertDAO.AlertOfCameraAndDetectedObject(came_id, imha_id, maxLastAlertInMinute);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public List<Alert> GetAlertSortByDate()
        {
            try
            {
                return AlertDAO.GetAlertsDateDesc();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public void CloseConnexion()
        {
            try
            {
                //DbProviderHelper.CloseConnexion();
            }
            catch (Exception ex)
            {
                throw ex;
            }
           
        }
	}
}
